#ifndef CL_News_H_INCLUDED
#define CL_News_H_INCLUDED

#include<string>
#include<map>
#include<time.h>
#include "unicode/unistr.h"


typedef std::string ustring;
typedef std::string language_code;
typedef std::string guidstring;

struct CL_channel {
     ustring titel;
     std::string url;
     ustring description;
     language_code language;
     ustring copyright;
     time_t pubDate;
     struct image{
          std::string url;
          ustring titel;
          std::string link;
          image():url(""),titel(""),link(""){};
     };
     image img;
     CL_channel():titel(""),url(""),description(""),language(""),copyright(""),pubDate(0),img(){};
};
struct CL_newsitem {
     ustring title;
     ustring description;
     std::string link;
     ustring author;

};

class CL_News {
public:
     std::size_t guid;
     time_t pubDate;
     CL_channel channel;
     CL_newsitem newsitem;
};

typedef std::map<std::size_t, CL_News> newsmap;

#endif // CL_News_H_INCLUDED
